package 约定编程;

import org.springframework.util.ObjectUtils;

/**
 * @author zyl
 * @Description
 * @since 2024/1/24 14:21
 */

public class HelloServiceImpl implements HelloService{
    @Override
    public void sayHello(String name) {
        if (ObjectUtils.isEmpty(name)){
            throw new RuntimeException("是空的");
        }else {
            System.out.println("hello!"+name);

        }
    }
}
